﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ECS_Test
{
    public class Entity
    {
        public int id;
        public Dictionary<CompTypes, IComponent> comps;

        public Entity()
        {
            comps = new Dictionary<CompTypes, IComponent>();
        }
        public void AddComp(IComponent _comp)
        {
            string ICompAsString = _comp.GetType().Name;
            CompTypes c = Components.stringCompDict[ICompAsString.Substring(5)];
            this.comps.Add(c, _comp);
        }
    }
}
